<?php
/*  
 *  Project lonely
 *  Author: Fvcity dev Team
 *  File: /lonely/sidebar.php
 *
 *  Subversion Keywords:
 *  $Id: sidebar.php 19 2007-07-05 05:21:52Z fvcity.roy $
 *  $Date: 2007-07-05 05:21:52 +0000 (Thu, 05 Jul 2007) $
 *  $Revision: 19 $
 *  $Author: fvcity.roy $
 *  $URL: http://fvcity.googlecode.com/svn/trunk/sidebar.php $
 */
 ?>
 
<!-- Side Right - START -->
<div class="sr">
	
<div class="general">

<!-- START Search -->
<!--<div class="flex">
<div class="Search">
 <h3>Search</h3>
 <div class="fvbox"> 
    <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
     <input type="text" name="s" class="keyword" style="width: 198px;" />
    </form></div>
 <div class="SearchCorner"></div>
</div></div>-->
<!-- END Search -->

<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('Sidebar') ) : else : ?>

<!-- START Categories -->
<div class="flex">
 <div class="recent_posts">
   <h3>最受欢迎</h3>
<div class="fvbox">
    <ul>
      <?php akpc_most_popular(); ?>
    
   </ul></div>
    </div>
   </div>
<!-- END Categories -->


<!-- START Categories -->
<div class="flex">
 <div class="categories">
   <h3>文章分类</h3>
<div class="fvbox">
    <ul>
      <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
   </ul></div>
    </div>
   </div>
<!-- END Categories -->

<?php if ( !is_home() ) { ?>
<!-- START Categories -->
<div class="flex">
 <div class="recent_posts">
   <h3>最新发布</h3>
<div class="fvbox">
    <ul>
      <?php get_recent_posts(); ?>
   </ul></div>
    </div>
   </div>
<!-- END Categories -->

<!-- START Categories -->
<div class="flex">
 <div class="recent_comment">
   <h3>Recent Comments</h3>
<div class="fvbox">
    <ul>
			<?php get_recent_comments(); ?>
   </ul></div>
    </div>
   </div>
<!-- END Categories -->
<?php } ?>

<!-- START General -->
<div class="flex">
<div class="archives">
 <h3>文章归档</h3>
  <div class="fvbox">
  <ul>
   <?php get_archives('monthly', '', 'html', '', '', TRUE); ?>
  </ul></div>
</div></div>
<!-- END General -->
   
<!-- START Links -->
 <div class="flex">
 <div class="links">
   <h3>友情链接</h3>
     <div class="fvbox">
    <ul>
     <?php get_links('-1', '<li>', '</li>', '', FALSE, 'id', FALSE, 
FALSE, -1, FALSE); ?>

    </ul></div>
   </div></div>
<!-- END Links -->


<!-- START Links -->
<!-- <div class="flex">
 <div class="Calendar">
   <h3>Calendar</h3>
     <div class="fvbox">
     <?php get_calendar(daylength); ?>
   </div></div></div>-->
<!-- END Links -->
<?php endif; ?>
</div>
<!-- Side Right - END -->

</div>